<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:102:"D:\development\2C8BF558-3886-40A2-B2B6-E724420FD872\public/../application/index\view\form\preview.html";i:1502276491;}*/ ?>
<!DOCTYPE html>
<html>
	<head>
		<title>表单预览</title>

		<!-- meta -->
		<meta charset="UTF-8">
	    <meta name="viewport" content="width=device-width, initial-scale=1">

	    <!-- css -->
	    <link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/bootstrap.min.css">
	    <link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH; ?>/css/preview.css">

	</head>
	<body>
		<div class="preview">
			<div class="iframe">
				<div class="title">
					<!-- <div class="title-text"><b>你的暑假如何度过？</b></div> -->
					<div class="title-text"><b><?php echo $list['title']; ?></b></div>
				</div>
				<div class="describe">
				    <!-- 又是一年夏天，知了声声，正值暑假，那么今年，你的暑假是如何过的呢？ -->
				    <?php echo $list['content']; ?>

					<p>-----------------------------------------</p>
				</div>
				<form action="" method="post">

					<?php if(is_array($row) || $row instanceof \think\Collection || $row instanceof \think\Paginator): $i = 0; $__LIST__ = $row;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$row): $mod = ($i % 2 );++$i;switch($name=$row['choice_type']): case "text": ?>
					    	<div class="briefAnswer">
								<p class="littleTitle"><b><?php echo $row['choice_name']; ?><span style="color:red">*</span><span style="color:#2695D0">[简答题]</span></b></p>
								<div>
									<input type="text" value="" class="frame">
								</div>  
						    </div>
					    <?php break; case "select": ?>
					    	<div class="dropDownList">
								<p class="littleTitle"><b><?php echo $row['choice_name']; ?><span style="color:red">*</span><span style="color:#2695D0">[下拉框]</span></b></p>
								<div>
									
										<!-- <input list="browsers" name="browser" style="width:100%"> -->
					                 <select id="browsers" style="width:100%">
					                 	<?php foreach($row['choice_data'] as $vo): ?>						     
						                 	 <option style="width:100%" value='<?php echo $vo; ?>'><?php echo $vo; ?></option>
						                 <?php endforeach; ?>	
						               </select> 
											
									
					                 <!-- <input list="browsers" name="browser" style="width:100%">
					                 <datalist id="browsers">
					                 <option value="大一">
					                 <option value="大二">
					                 <option value="大三">
					                 <option value="大四">
					                 </datalist>   -->
								</div>  
						    </div>
					    <?php break; case "textarea": ?>
					    	<div class="longAnswer">
								<p class="littleTitle"><b><?php echo $row['choice_name']; ?><span style="color:red">*</span><span style="color:#2695D0">[详述题]</span></b></p>
								<div>
									<textarea rows="3" name="longAnswer" style="width:100%"></textarea>
								</div>  
						    </div>
					    <?php break; case "checkbox": ?>
					    	<div class="checkboxes">
								<p class="littleTitle"><b><?php echo $row['choice_name']; ?><span style="color:red">*</span><span style="color:#2695D0">[多选题]</span></b></p>
								<div class="boxes">
									<?php foreach($row['choice_data'] as $vo): ?>
										<div class="box">
											<input type="checkbox"><?php echo $vo; ?>
										</div>

										
									<?php endforeach; ?>								
<!-- 									<div class="box">
										<input type="checkbox"> <?php echo $row['choice_data'][0]; ?>
									</div>
									<div class="box">
										<input type="checkbox"> <?php echo $row['choice_data'][1]; ?>
									</div>
									<div class="box">
										<input type="checkbox"> <?php echo $row['choice_data'][2]; ?>
									</div>	 -->	
								</div>  
						    </div>
					    <?php break; case "radio": ?>
					    	 <div class="radios">
								<p class="littleTitle"><b><?php echo $row['choice_name']; ?><span style="color:red">*</span><span style="color:#2695D0">[单选题]</span></b></p>
								<div class="boxes">
									<?php foreach($row['choice_data'] as $vo): ?>
										<div class="box">
											<input type="radio" name="<?php echo $key; ?>"> <?php echo $vo; ?>
										</div>

									<?php endforeach; ?>	
									<!-- <div class="box">
										<input type="radio"> 两个月
									</div>
									<div class="box">
										<input type="radio"> 一个月
									</div>
									<div class="box">
										<input type="radio"> 少于一个月
									</div>	 -->	
								</div>  
						    </div>
					    <?php break; endswitch; endforeach; endif; else: echo "" ;endif; ?>

				    <div class="bottomBtn">
				    	<button type="submit" class="btn btn-lg" style="background-color:#2695D0;width:150px"><b>提 交</b></button>
				    </div>
				</form>  
				
			</div>
		</div>
		
			<a class="return btn btn-lg btn-primary" href="<?php echo url('Form/form'); ?>" role="button">返回</a>
		
	</body>
</html>